package com.glg.mybatis.controller;

import com.glg.mybatis.module.UserInfo;
import com.glg.mybatis.server.UserServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/hello")
public class UserController {
    @Autowired
    private UserServer userServer;

    @RequestMapping("/getUserAll")
    public List<UserInfo> getUserAll() {
        return userServer.getUserAll();
    }
}
